<!DOCTYPE html>
<html>
<head>
<title>投诉管理</title>
#include("../include/common.html")
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>投诉管理</h5>
            </div>
           	<form id="listForm" action="list" method="get">
	            <div class="ibox-content">
	                <!-- 搜索 start -->
	                <div class="form-horizontal clear">
	                    <div class="form-group">
	                        <label class="col-sm-1 control-label">名称：</label>
	                        <div class="col-sm-2"><input class="form-control" type="text" name="name" value="#(name)"></div>
	                    </div>
	                    <div class="text-center">
                        	<input type="submit" class="btn btn-primary btn-w-m" value="查 询">
                        	<input type="reset" class="btn btn-primary btn-w-m" value="重 置">
                       	</div>
	                </div>
	                <!-- 搜索 end -->
	                <!-- 列表 start -->
	                <div class="form-horizontal clear">
	                    <div class="form-group">
	                        <div class="col-sm-8">
	                            <a href="javascript:;" class="btn btn-warning disabled" id="deleteButton"><i class="fa fa-trash"></i> 删除</a>
	                            <a href="javascript:;" class="btn btn-primary" id="refreshButton"><i class="fa fa-refresh"></i> 刷新</a>
	                        </div>
	                    </div>
	                    <div class="table-responsive">
	                        <table class="table table-bordered" id="listTable">
	                            <thead>
	                                <tr>
	                                    <th width="40" class="text-center"><input type="checkbox" id="selectAll" /></th>
	                                    <th>ID</th>
	                                    <th>投诉编号</th>
	                                    <th>订单编号</th>
	                                    <th>投诉原因</th>
										<th>证明材料</th>
										<th>投诉状态</th>
										<th>投诉时间</th>
										<th>投诉建议人</th>
										<th>联系电话</th>
	                                </tr>
	                            </thead>
	                            <tbody id="listTr">
	                            	#for(complaint : page.list)
	                                <tr>
	                                    <td class="text-center"><input type="checkbox" name="ids" value="#(complaint.id)" /></td>
	                                    <td>#(complaint.id)</td>
	                                    <td>#(complaint.code)</td>
										<td>#(complaint.orderSn)</td>
										<td>#(complaint.content)</td>
	                                    <td>
	                                    	#if(complaint.material??)
												<a href="#(imageUrl(complaint.material))" target="_blank">查看</a>
											#else
												-
											#end
	                                    </td>
	                                    <td>
	                                    	#if(complaint.status==0) 提交 #else if(complaint.status==1) 受理 #else if(complaint.status==2) 处理完成 #end
	                                    </td>
	                                    <td>#(complaint.createDate)</td>
										<td>#(complaint.name)</td>
										<td>#(complaint.phone)</td>
	                                </tr>
	                                #end
	                            </tbody>
	                        </table>
	                    </div>
	                    <div class="text-center">
                            #pagination(pageNumber = page.pageNumber,totalPages = page.totalPage,pattern = "")
                                 #include("../include/pagination.html")
                            #end
	                    </div>
	                </div>
	                <!-- 列表 end -->
	            </div>
            </form>
        </div>
    </div>
</body>
</html>